package com.itheima.service;

import com.itheima.entity.Result;
import com.itheima.pojo.OrderInfo;

import java.util.List;
import java.util.Map;

public interface OrderService {

    Result order(OrderInfo orderInfo) throws Exception;

    /*根据套餐ID查询套餐信息，用于页面展示*/
    Map findById(Integer id) throws Exception;



    List<String> findDateTime(String startDate, String endDate) throws Exception;

    List<Integer> findBookingCount(List<String> dates);

    List<Integer> findConfirmedCount(List<String> dates);
}
